<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<import type="js" file="js.jquery" />
<import type="js" file="js.common" />
<import type="css" file="css.global" />
<import type="css" file="css.form" />
</head>
<body>
<div class="search">
<input type="button" value="添加" class="button" title="新建角色" onclick="add()" >
</div>
<div class="list">
<table class="stripe" cellspacing="0">
    <thead>
        <tr>
            <th style="min-width: 30px;"><input type="checkbox" name="checkid" onclick="if(this.checked==true) { checkAll('key[]'); } else { clearAll('key[]'); }" ></th>
            <th width="10%">序号</th>
            <th width="75%">名称</th>
            <th width="13%">操作</th>
        </tr>
    </thead>
 
    <tbody>
   	  <volist name="data" id="vo" empty="$empty">
        <tr>
            <td><input type="checkbox" name="key[]" value="{$vo.sort_id}"></td>
            <td>{$i}</td>
            <td>{$vo.sort_name|default="---"}</td>
            <td><a href="javascript:void(0)" onclick="edit({$vo.sort_id})" >编辑</a>  |  <a href="javascript:void(0)" onclick="del({$vo.sort_id})">删除</a></td>
        </tr>
      </volist>
    </tbody>
</table>
</div>
</body>
</html>
<script language="javascript">
$(document).ready(function(){  
	$(".stripe tr").mouseover(function(){    
	  $(this).addClass("over");}).mouseout(function(){   
			$(this).removeClass("over");}) 
  	$(".stripe tr:even").addClass("alt");
}); 
function add(){
	window.location="__APP__/WorkFlowSys/flow_sort_add";
}
function edit(sort_id){
	window.location="__APP__/WorkFlowSys/flow_sort_edit?sort_id="+sort_id;
}
function del(sort_id){
	if(confirm("确定要删除么？")){
		window.location="__APP__/WorkFlowSys/flow_sort_delete?sort_id="+sort_id;
	}else{
		return false;
	}
}
</script>  